#!/usr/bin/python

import cgi
import cgitb
cgitb.enable()

print "Content-Type: text/html\n"

print "<html>"
print "<body>"

form = cgi.FieldStorage() 

if form.has_key("n"):

    n = form.getvalue("n")
        
    for a in range(1,int(n)+1):
        print str(a**2)+'<br/>'

else:
    n = 21
    for a in range(1,n):
        print str(a**2)+'<br/>'


print "</body>"
print "</html>"
